/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cannes.dao;

import java.sql.Connection;
import java.util.*;

/**
 *
 * @author p1000666
 */
public abstract class DAO<T> {
    protected Connection connect = null;

    public DAO(Connection connect) {
        this.connect = connect;
    }
    
    public abstract boolean create(T obj);
    public abstract boolean update(T obj);
    public abstract boolean delete(T obj);
    public abstract T find(int id);
    public abstract ArrayList<T> findAll();
    public abstract int next();

}
